package com.huowenjie.web;

import com.huowenjie.api.TestApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class RibbonController {

    @Autowired
    TestApi testApi;

    @RequestMapping("/test1/{name}")
    public String tset(@PathVariable String name){
        String test2 = testApi.test2(name);

        return test2;
    }

}
